package org.csu.jpetstoreagain.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.lang.reflect.Type;

@Data
@TableName("cart")
public class Cart {
    /**
     * id
     */
    @TableId(type = IdType.AUTO,value = "itemid")
    private String itemId;

    /**
     * 用户id
     */
    private String userid;

    /**
     * 数量
     */
    private int quantity;
}
